{OVERALL_HEADER}
    <div id="maincontainer">
        <div id="newsbar">
            <div class="newstitle">
                {CAT_TITLE}
            </div>
        </div>
    </div>
	<div class="aclear"></div>
	<div id="container">
        <div id="headerbar"></div>
            <div class="aclear"></div>
            <div id="main">
                <div class="maincontent">
                    <div class="popbar">
<div id="tabsB">
	  <ul>
<li IF("{MODE}"=="popular"){id="current"{:IF}><a href="{POPULAR_LINK}"><span>{LANG_POPS}</span></a></li>
<li IF("{MODE}"=="upcoming"){id="current"{:IF}><a href="{UPCOMING_LINK}"><span>{LANG_UPS}</span></a></li>
</ul>
</div>
                    </div>
                    <div class="aclear"></div>
                    {LOOP: STORIES}
                    <div class="postage">
                            <div class="rating1">
                                <div class="ratingbutton">
                                    <a href="{STORIES.story_url}">{STORIES.story_digs}</a>
                                    <div class="digstext">{LANG_DIGGS}</div> 
                                </div>
                                <div class="duggbutton" id="digbut{STORIES.story_id}">                 
IF("{STORIES.dugg}"=="1"){<a href="{STORIES.story_url}">{LANG_DUGG}</a>{:IF}
IF("{STORIES.dugg}"=="0"){<a href="javascript:dig({STORIES.story_id});">{LANG_DIGIT}</a>{:IF}
                                </div>
                                <div class="aclear"></div>
                            </div>
                            <div class="mainpost1"><div class="posttitle"><a href="{STORIES.story_url}">{STORIES.story_title}</a></div>
                            <div class="postdetails">{LANG_SUBBY} {STORIES.user_name} {STORIES.ago} {LANG_AGO} (via {STORIES.domain})</div>
                            <div class="postcontent">IF("{STORIES.story_thumb}"!=""){<a href="{STORIES.story_url}"><img src="{SITE_URL}images/thumbs/{STORIES.story_thumb}.jpg" alt="Watch Video" width="86" height="72" border="0" align="right"></a>{:IF}{STORIES.story_desc}</div>
                            <div class="postapps">
                                <div class="postappscommentsicon"></div>
                                <div class="postappscommentslink"><a href="{STORIES.story_link}#comments">{STORIES.story_comments} {LANG_COMS}</a></div>
                                <div class="postappssendicon"></div>
                                <div class="postappssendlink"><a href="javascript:bury_story({STORIES.story_id});">{LANG_BURY}</a></div>
                            </div>
                        </div>
                        <div class="aclear"></div>
                    </div>
                    {/LOOP: STORIES}
                    <br /><br />
                    {LANG_PAGES}: {LOOP: PAGES}<a href="{PAGES.link}">{PAGES.title}</a> {/LOOP: PAGES}
                    <div class="aclear">
                    </div>
                </div>
            </div>
        </div>
        <div class="rightcontent">
            <h3><a href="{SITE_URL}add_story.php"><img src="{SITE_URL}/templates/{TPL_NAME}/images/submit.gif" width="241" height="53" border="0" alt="{LANG_ADDSTORY}" /></a></h3>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <br />
            <br />
        </div>
        <div class="aclear">
        </div>
    </div>
{OVERALL_FOOTER}